package com.railway.field.service;

import com.railway.field.dao.RebarDao;
import com.railway.field.entity.Rebar;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class RebarService implements RebarDao {
    @Autowired
    private RebarDao rebarDao;

    //查询钢筋绑扎区信息
    @Override
    public List<Rebar> FindRebar(Map map) {
        return rebarDao.FindRebar(map);
    }

    //台座总数
    @Override
    public int CountAll(Map map) {
        return rebarDao.CountAll(map);
    }

    //占用数量
    @Override
    public int CountByState_Zy(Map map) {
        return rebarDao.CountByState_Zy(map);
    }

    //空闲数量
    @Override
    public int CountByState_Kx(Map map) {
        return rebarDao.CountByState_Kx(map);
    }
}
